Main Page | Class Hierarchy | Class List | Class Members

MPPlayerDisconnect Class Reference

MP Game player disconnection message (Type: 3). More...

#include <BustaNetInternal.h>

Inheritance diagram for MPPlayerDisconnect:

BustaNetInternalMsg List of all members.

Public Member Functions

 MPPlayerDisconnect (int pID, char *msg)
 CONSTRUCTOR.
int getPlayerID ()
 Returns the disconnected player's identification number.
char * getReason ()
 Returns the reason for the player's disconnection.

Detailed Description

MP Game player disconnection message (Type: 3).

This message is received when a player has disconnected from the multiplayer game. Receivers of the message are told the identification number of the disconnected player as well as the reason for disconnection.


Constructor & Destructor Documentation

MPPlayerDisconnect::MPPlayerDisconnect int  pID,
char *  msg
 

CONSTRUCTOR.

Creates an instance of the MPPlayerDisconnect class.

Parameters:
pID The identification number of the disconnected player
msg The reason for the player's disconnection


Member Function Documentation

int MPPlayerDisconnect::getPlayerID  ) 
 

Returns the disconnected player's identification number.

Returns the integer identification number of the player who has disconnected

Returns:
The identification number of the disconnected player

char * MPPlayerDisconnect::getReason  ) 
 

Returns the reason for the player's disconnection.

Returns the reason for disconnection by the player. This could simply be that the player has decided to leave the game, the player has timed-out from the server, etc.

Returns:
The reason for disconnection


Generated on Tue Aug 2 22:03:12 2005 for BustaSandwich Networking by  doxygen 1.4.2-20050421